package com.buyingtickets.entity;



/**
 * @author Hexz
 * @date 2021/6/23 23:10
 */
public class UnitInterval {
    private int unitId;//单元ID
    private Site startsite;//站点对象：起始站
    private Site endsite;//站点对象：终点站
    private String travelTime;//途径时间
    private int mileage;//里程

    public UnitInterval() {
    }

    public UnitInterval(int unitId, Site startsite, Site endsite, String travelTime, int mileage) {
        this.unitId = unitId;
        this.startsite = startsite;
        this.endsite = endsite;
        this.travelTime = travelTime;
        this.mileage = mileage;
    }

    @Override
    public String toString() {
        return "UnitInterval{" +
                "unitId=" + unitId +
                ", startsite=" + startsite +
                ", endsite=" + endsite +
                ", travelTime='" + travelTime + '\'' +
                ", mileage=" + mileage +
                '}';
    }

    public int getUnitId() {
        return unitId;
    }

    public void setUnitId(int unitId) {
        this.unitId = unitId;
    }

    public Site getStartsite() {
        return startsite;
    }

    public void setStartsite(Site startsite) {
        this.startsite = startsite;
    }

    public Site getEndsite() {
        return endsite;
    }

    public void setEndsite(Site endsite) {
        this.endsite = endsite;
    }

    public String getTravelTime() {
        return travelTime;
    }

    public void setTravelTime(String travelTime) {
        this.travelTime = travelTime;
    }

    public int getMileage() {
        return mileage;
    }

    public void setMileage(int mileage) {
        this.mileage = mileage;
    }
}
